package com.dengqi.mymodule.activity.network.module;

import com.module.retrofit.bean.ResponseBean;

import java.util.Map;

import io.reactivex.Observable;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;

/**
 * @Author: dengqi
 * @CreateDate: 2020-10-15 20:06
 * @Description: 通用模块：发送验证码
 */
public interface CommonContract {

    interface SmsView{
        String getPhone();
        void onSendCaptcha();
    }

    interface Presenter{
        void sendCaptcha(SmsView view);
    }

    interface Model{
        //发送短信验证码
        @FormUrlEncoded
        @POST("https://api.900sui.cn/v1/public/sms/sendCaptcha")
        Observable<ResponseBean<Map<String, String>>> sendCaptcha(@FieldMap Map<String, String> params);

    }
}